home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Tools / MPW / fgrep 1.1 / Makefile < prev    next >
Encoding:
Makefile  |  1993-03-14  |  1.1 KB  |  58 lines  |  [TEXT/MPS ]

  1. #   File:       Makefile
  2. #   Target:     fgrep
  3. #   Created:    Sat, Feb 20, 1993
  4. #    Author:        Franklin Chen
  5.  
  6. # if you don't have gC, you'll need ALLOCA (below)
  7. C = gC
  8.  
  9. DEFS = -d STDC_HEADERS -d USG ∂
  10.     -d MPW_OUTPUT
  11.  
  12. COptions = {DEFS} ∂
  13.     -r ∂
  14.     -mc68020 ∂
  15.     -opt full
  16.  
  17. LOptions = -d -c 'MPS ' -t MPST
  18.  
  19. # uncomment if you don't already have getopt, obstack, error, xmalloc
  20. # (and alloca) in your library
  21. GCINCDIR = "{CIncludes}"
  22. GCLIBDIR = "{CLibraries}"
  23.  
  24. ALLOCA =
  25. #ALLOCA = "{CLibraries}"alloca.c.o
  26.  
  27. GCLIBS = "{GCLIBDIR}"getopt.c.o ∂
  28.         "{GCLIBDIR}"obstack.c.o ∂
  29.         "{GCLIBDIR}"error.c.o ∂
  30.         "{GCLIBDIR}"xmalloc.c.o ∂
  31.         {ALLOCA}
  32.  
  33. LIBS =    "{CLibraries}"StdClib.o ∂
  34.         "{Libraries}"Stubs.o ∂
  35.         "{Libraries}"Runtime.o ∂
  36.         "{Libraries}"Interface.o
  37.  
  38.  
  39. FOBJ = fgrep.c.o kwset.c.o
  40.  
  41. .c.o    ƒ    .c
  42.     {C} {COptions} -s {default} {depDir}{default}.c -o {targDir}{default}.c.o 
  43.  
  44. fgrep ƒƒ {FOBJ}
  45.     Link {LOptions} {FOBJ} {GCLIBS} {LIBS} ∂
  46.         -sg Main ∂
  47.         -o fgrep
  48. fgrep ƒƒ fgrep.r
  49.     Rez fgrep.r -append -o fgrep
  50.  
  51. install ƒ fgrep
  52.     Duplicate -y fgrep "{MPW}Tools:fgrep"
  53.     
  54. clean ƒ FRC
  55.     Delete -i -y fgrep {FOBJ} ≈.makeout
  56.  
  57. kwset.c.o fgrep.c.o ƒ kwset.h "{GCINCDIR}obstack.h"
  58.